var status = -1;
var selectionLog = [];

function start() {
    action(1, 0, 0)
}

function action(d, c, b) {
    if (status == 0 && d == 0) {
        cm.dispose();
        return
    }
    status++;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        cm.dispose()
    } else {
        if (status === a++) {
            cm.npc_ChangeController(3004303, "oid=367767", -46, 281, 2, -96, 4, 1, false, 0, false);
            cm.npc_ChangeController(3004302, "oid=367768", -127, 281, 2, -177, -77, 1, false, 0, false);
            cm.npc_ChangeController(3004300, "oid=367769", -471, 281, 2, -521, -421, 1, false, 0, false);
            cm.npc_ChangeController(3004335, "oid=2809197", 262, 262, 1, 212, 312, 1, false, 0, false);
            cm.npc_SetSpecialAction("oid=2809197", "summon", 0, 0);
            cm.npc_SetSpecialAction("oid=2809197", "special2", -1, 1);
            cm.dispose()
        }
    }
};